package data;

public class NamePassword {
    private NaPa[] naPas = new NaPa[20];
    private int NPnubmer;
    public NamePassword() {
        naPas[0]=new NaPa("张三","123456");
        naPas[1]=new NaPa("李四","666666");
        naPas[2]=new NaPa("王五","7777777");
        NPnubmer=3;
    }

    public int getNPnubmer() {
        return NPnubmer;
    }

    public void setNPnubmer(int NPnubmer) {
        this.NPnubmer = NPnubmer;
    }

    public void setNaPas(String name,String password) {
        NaPa naPa = new NaPa(name,password);
        naPas[NPnubmer]=naPa;
    }

    public NaPa getNapas(int pos) {
        return naPas[pos];
    }
}